RegistPanel={};
local this = RegistPanel;

function RegistPanel.new( )
    panelMgr:CreatePanel("Regist",nil);
end
function RegistPanel.OnCreate(go )
end
function RegistPanel.OnClick( )
    log(this.username.text);
end


function RegistPanel.Awake( go )
    log("RegistPanel.Awake");
    this.gameObject=go;
    this.transform=go.transform;
    local  behavior = this.transform:GetComponent('LuaBehaviour');

    this.RegistsName=this.transform:Find("RegistsName"):GetComponent('InputField');
    this.RegistsWord=this.transform:Find("RegistsWord"):GetComponent('InputField');

    this.RegistBtn=this.transform:Find("RegistsBtn").gameObject;
    this.BackBtn=this.transform:Find("BackBtn").gameObject;
    behavior:AddClick(this.RegistBtn,this.OnClick);
    behavior:AddClick(this.RegistsBtn,this.OnClose);
end

function RegistPanel.Start()
    log("RegistPanel.Start");
end